<%--
  Created by IntelliJ IDEA.
  User: focus
  Date: 2018/1/5
  Time: 21:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../base.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
    <meta name="renderer" content="webkit" />
    <title>发布文章 - WeCenter 社交化问答社区程序</title>
    <meta name="keywords" content="wecenter,知识社区,企业社区,社交问答,问答社区,企业社交,开源社区程序,社交社区程序,开源问答程序,问答网站,social question,微信,微信公众平台,微信开发,微信开发社区,微信应用" />
    <meta name="description" content="WeCenter 是一款知识型的社交化问答社区程序，专注于社区内容的整理、归类和检索，并通过连接微信公众平台，移动APP进行内容分发。"  />
    <base href="<%=basePath%>">
    <link href="css/default/img/favicon.ico?v=20160523" rel="shortcut icon" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="css/icon.css" />
    <link href="css/default/common.css?v=20160523" rel="stylesheet" type="text/css" />
    <link href="css/default/link.css?v=20160523" rel="stylesheet" type="text/css" />
    <link href="js/plug_module/style.css?v=20160523" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        var _DCADEEE714B9E5E784FC88CA656B7B9B="713981d5b4b7e61728d30485f61a9ec0";
        var G_POST_HASH=_DCADEEE714B9E5E784FC88CA656B7B9B;
        var G_INDEX_SCRIPT = "";
        var G_SITE_NAME = "WeCenter 社交化问答社区程序";
        var G_BASE_URL = "http://wenda.wecenter.com";
        var G_STATIC_URL = "http://wenda.wecenter.com/static";
        var G_UPLOAD_URL = "http://wenda.wecenter.com/uploads";
        var G_USER_ID = "41635";
        var G_USER_NAME = "FOCUS";
        var G_UPLOAD_ENABLE = "Y";
        var G_UNREAD_NOTIFICATION = 0;
        var G_NOTIFICATION_INTERVAL = 100000;
        var G_CAN_CREATE_TOPIC = "";
        var G_ADVANCED_EDITOR_ENABLE = "Y";
        var FILE_TYPES = "jpg,jpeg,png,zip,rar,7z";
    </script>

    <script src="js/jquery.2.js?v=20160523" type="text/javascript"></script>
    <script src="js/jquery.form.js?v=20160523" type="text/javascript"></script>
    <script src="js/plug_module/plug-in_module.js?v=20160523" type="text/javascript"></script>
    <script src="js/aws.js?v=20160523" type="text/javascript"></script>
    <script src="js/aw_template.js?v=20160523" type="text/javascript"></script>
    <script src="js/app.js?v=20160523" type="text/javascript"></script>
    <script src="js/app/publish.js?v=20160523" type="text/javascript"></script>
    <script src="js/editor/ckeditor/ckeditor.js?v=20160523" type="text/javascript"></script>
    <script src="js/editor/ckeditor/adapters/jquery.js?v=20160523" type="text/javascript"></script>
    <script src="js/fileupload.js?v=20160523" type="text/javascript"></script>
    <script type="text/javascript" src="js/compatibility.js"></script>
    <!--[if lte IE 8]>
    <script type="text/javascript" src="js/respond.js"></script>
    <![endif]-->
</head>
<noscript unselectable="on" id="noscript">
    <div class="aw-404 aw-404-wrap container">
        <img src="common/no-js.jpg">
        <p>你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!</p>
    </div>
</noscript>
<body>
<%@ include file="../common/header.jsp"%>
<div class="aw-container-wrap">
    <div class="container aw-publish aw-publish-article">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-9 aw-main-content">
                    <!-- tab 切换 -->
                    <ul class="nav nav-tabs aw-nav-tabs active">
                        <li class="active"><a href="article/publish">文章</a></li>
                        <li><a href="question/publish">问题</a></li>
                        <h2 class="hidden-xs"><i class="icon icon-ask"></i>发起</h2>
                    </ul>
                    <!-- end tab 切换 -->
                    <form action="article/ajax/publish" method="post" id="question_form" onsubmit="return false;">
                        <div class="aw-mod aw-mod-publish">
                            <div class="mod-body">
                                <h3>文章标题:</h3>
                                <!-- 文章标题 -->
                                <div class="aw-publish-title">
                                    <input type="text" placeholder="文章标题..." name="title" id="question_contents" value="" class="form-control" />
                                    <div class="aw-dropdown aw-question-dropdown">
                                        <i class="aw-icon i-dropdown-triangle active"></i>
                                        <p class="title">没有找到相关结果</p>
                                        <ul class="aw-question-dropdown-list"></ul>
                                    </div>
                                </div>
                                <!-- end 文章标题 -->

                                <h3>文章内容:</h3>
                                <div class="aw-mod aw-editor-box">
                                    <div class="mod-head">
                                        <div class="wmd-panel">
                                            <textarea class="wmd-input form-control autosize editor" id="wmd-input" rows="15" name="content"></textarea>
                                        </div>
                                    </div>
                                    <div class="mod-body">
                                        <span class="pull-right text-color-999" id="question_detail_message">&nbsp;</span>
                                        <div class="aw-upload-box">
                                            <a class="btn btn-default">上传附件</a>
                                            <div class="upload-container"></div>
                                            <span class="text-color-999 aw-upload-tips hidden-xs">允许 : jpg,jpeg,png,zip,rar,7z</span>
                                        </div>
                                    </div>
                                </div>

                                <h3>添加话题:</h3>
                                <div class="aw-topic-bar" data-type="publish">
                                    <div class="tag-bar clearfix">
                                        <span class="aw-edit-topic icon-inverse"><i class="icon icon-edit"></i> 编辑话题</span>
                                    </div>
                                </div>
                            </div>
                            <div class="mod-footer clearfix">
                                <a href="http://wenda.wecenter.com/integral/rule/" target="_blank">[积分规则]</a><span class="aw-anonymity"></span>
                                <a class="btn btn-large btn-success btn-publish-submit" id="publish_submit" onclick="AWS.ajax_post($('#question_form')); return false;">确认发起</a>
                            </div>
                        </div>
                    </form>
                </div>
                <!-- 侧边栏 -->
                <div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
                    <!-- 文章发起指南 -->
                    <div class="aw-mod publish-help">
                        <div class="mod-head">
                            <h3>文章发起指南</h3>
                        </div>
                        <div class="mod-body">
                            <p><b>• 文章标题:</b> 请用准确的语言描述您发布的文章思想</p>
                            <p><b>• 文章补充:</b> 详细补充您的文章内容, 并提供一些相关的素材以供参与者更多的了解您所要文章的主题思想</p>
                            <p><b>• 选择话题:</b> 选择一个或者多个合适的话题, 让您发布的文章得到更多有相同兴趣的人参与. 所有人可以在您发布文章之后添加和编辑该文章所属的话题</p>
                        </div>
                    </div>
                    <!-- end 文章发起指南 -->
                </div>
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var CATEGORY_ID = "";
    var PUBLISH_TYPE = 'article';
</script>
<script type="text/javascript">
    var ATTACH_ACCESS_KEY = 'deb50dcdd46df950e25b7a1a26c82b01';
    var CATEGORY_ID = 0;
    var PUBLISH_TYPE = 'question';
</script>
<a class="aw-back-top hidden-xs" href="javascript:;" onclick="$.scrollTo(1, 600, {queue:true});"><i class="icon icon-up"></i></a>
<div id="aw-ajax-box" class="aw-ajax-box"></div>
</body>
</html>